package com.lhc.springboot_mybatispuls.servicelmp;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lhc.springboot_mybatispuls.entity.DomeUser;
import com.lhc.springboot_mybatispuls.repository.DomeUserDao;
import com.lhc.springboot_mybatispuls.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServicelmp
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-11-26 10:54
 * @UpdateUser: asus
 * @UpdateDate: 2020-11-26 10:54
 * @UpdateRemark:
 * @Version: 1.0
 */
@Service
public class UserServicelmp extends ServiceImpl<DomeUserDao,DomeUser> implements UserService {
    @Autowired
    DomeUserDao userDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DomeUser record) {
        return userDao.insert(record);
    }

    @Override
    public int insertSelective(DomeUser record) {
        return userDao.insertSelective(record);
    }

    @Override
    public DomeUser selectByPrimaryKey(Integer id) {
        return userDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DomeUser record) {
        return userDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DomeUser record) {
        return userDao.updateByPrimaryKey(record);
    }
}
